﻿using System;
using System.Collections.Generic;
using System.Text;
using TSVNAddin.Config;

namespace TSVNAddinUtils
{
	public class RegisterCommandFactory : IUtilsCommandFactory
	{
		public IUtilsCommand CreateCommand()
		{
			UtilsCommandList commands = new UtilsCommandList();

			RegistryAdapter registryAdapter = new RegistryAdapter();

			commands.Add(new AddLookInFolderCommand(
				new VisualStudioConfig(registryAdapter)));

			commands.Add(new MakeConfigCommand(
				registryAdapter,
				new ConfigStorage(new XmlFileStorage())));

			return commands;
		}
	}
}
